import {
  findTaskByRoleName
} from '@/api/body.js'
export default {
  namespaced: true,
  state: {
    dotasksList: []
  },
  mutations: {
    setDotasks (state, payload) {
      state.dotasksList = payload
    }
  },
  actions: {
    getDotasks ({
      commit
    }, payload) {
      findTaskByRoleName(payload).then(res => {
        commit('setDotasks', res)
      })
    }
  }
}
